﻿using System;

namespace Thuoc24h.ViewModels
{
    public class NewsModels
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public string UnsignTitle { get; set; }
        public int? CategoryId { get; set; }
        public string Description { get; set; }
        public string ThumbImage { get; set; }
        public string Detail { get; set; }
        public int? ViewCount { get; set; }
        public bool? IsDisplayOnList { get; set; }
        public bool? IsDisplayInOnFooter { get; set; }
        public bool? IsDisplayOnSlider { get; set; }
        public bool? IsDisplayOnHeader { get; set; }
        public DateTime? CreatedDate { get; set; }
        public string CreatedBy { get; set; }

        public NewsModels(int id, string title, string unsignTitle, int? categoryId, string description, string thumbImage, string detail, int? viewCount, bool? isDisplayOnList, bool? isDisplayInOnFooter, bool? isDisplayOnSlider, bool? isDisplayOnHeader, DateTime? createdDate, string createdBy)
        {
            Id = id;
            Title = title;
            UnsignTitle = unsignTitle;
            CategoryId = categoryId;
            Description = description;
            ThumbImage = thumbImage;
            Detail = detail;
            ViewCount = viewCount;
            IsDisplayOnList = isDisplayOnList;
            IsDisplayInOnFooter = isDisplayInOnFooter;
            IsDisplayOnSlider = isDisplayOnSlider;
            IsDisplayOnHeader = isDisplayOnHeader;
            CreatedDate = createdDate;
            CreatedBy = createdBy;
        }

        public NewsModels( int id,string title)
        {
            Title = title;
            Id = id;
        }

        public NewsModels(int id, string title, string unsignTitle, string description, int? categoryId, string thumbImage)
        {
            Id = id;
            Title = title;
            UnsignTitle = unsignTitle;
            Description = description;
            CategoryId = categoryId;
            ThumbImage = thumbImage;
        }
    }
}